<template>
	<view>
		<view class="p-2" v-for="item,index in list" :key="index">
			<common-list :item="item" :index="index"></common-list>
		</view>
	</view>
</template>

<script>
	import commonList from "@/components/common/common-list.vue"
	export default {
		components:{
			commonList
		},
		data() {
			return {
				title: 'Hello',
				guanz: true,
				list:[
						{title:'这是标题',guanz: true,img:'/static/demo/userpic/1.jpg',nc:'小红',date:'2024-09-19',image:'/static/demo/demo2.jpg',dz:12,ndz:10,fx:5},
						{title:'这是ni好',guanz: true,img:'/static/demo/userpic/2.jpg',nc:'张三',date:'2024-09-17',image:'/static/demo/demo1.jpg',dz:12,ndz:10,fx:5},
						{title:'小可爱',guanz: true,img:'/static/demo/userpic/3.jpg',nc:'李四',date:'2024-09-16',image:'/static/demo/demo4.jpg',dz:12,ndz:10,fx:5}
				]
			}
		},
		methods: {
			guanzhu(e){
				uni.showToast({
					title:"关注成功"
				})
				this.list[e].guanz = false
			},
			guanzhu2(e){
				uni.showToast({
					title:"关注取消"
				})
				this.list[e].guanz = true
			},
			touxiang(e){
				console.log(e)
				uni.navigateTo({
					url: '/pages/ceshi/user?id='+e
				});
			},
			
			neirong(){
				
			}
		}
	}
</script>

<style>
@import "../../common/uni.css";
@import "../../common/animate.css";
</style>
